package com.rightsidetech.mall.service;

import com.github.pagehelper.PageInfo;
import com.rightsidetech.commom.base.DelReq;
import com.rightsidetech.commom.base.ResponseData;
import com.rightsidetech.mall.dto.request.*;
import com.rightsidetech.mall.dto.response.BaesInfoDetailResp;
import com.rightsidetech.mall.dto.response.BaseInfoPageResp;
import com.rightsidetech.mall.dto.response.OptBaseInfoPageResp;
import com.rightsidetech.mall.entity.MallBaseInfo;

import java.util.List;

public interface MallBaseInfoService {

    ResponseData save(BaseInfoReq req,String createrName,Long createrId);

    ResponseData<PageInfo<BaseInfoPageResp>> page(BaseInfoPageReq req);

    ResponseData<BaesInfoDetailResp> getBaesDetail(Long id);

    ResponseData update(BaseInfoUpReq req,String updaterName,Long updaterId);

    ResponseData isDelete(DelReq req);

    ResponseData<PageInfo<OptBaseInfoPageResp>> optBaseInfo(OptBaseInfoReq req);

    ResponseData<PageInfo<OptBaseInfoPageResp>> optIntegral(OptBaseInfoReq req);

    ResponseData<List<DetailSpecsReq>> createSpecs(Long id);

    MallBaseInfo selectByPrimaryKey(Long id);

    ResponseData<List<DetailSpecsReq>> createSpecsGift(Long id);
}
